<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>比较运算符(关系运算符)</title>
</head>

<body>
  <script>
    // 比较运算符   根据比较结果返回布尔值
    console.log(3>5)  //f
    console.log(3<5)   //t
    console.log(3>=5)
    console.log(3<=5)

    // 判断值是否相等===全等
    console.log(3 === 3)
    console.log(3 === '3')
    // 要看数据类型和大小都一样
    console.log(3 !== 3)
    console.log(3 !== '3')

    // 双等 ==判断是否相等,不判断数据类型
    console.log(3 == 3)
    console.log(3 == '3')
  </script>
</body>

</html>   